package com.demo.core.model;

import com.demo.core.model.support.NestedSetModel;

/**
 * 站点模型
 * 核心模型,站点为
 * @author ryuu.kk
 *
 */
public class Site extends NestedSetModel implements java.io.Serializable {

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = 4086958885942909457L;
	
	/**
	 * 父Site管理许可
	 */
	private Boolean isPermissionPid;
	
	/**
	 * 标示站点类型ID
	 */
	private Long siteGroupId;
	
	/**
	 * 站点名称
	 */
	private String name;
	
	/**
	 * 站点简称
	 */
	private String shortName;
	
	/**
	 * 默认语言
	 */
	private String language;
	
	/**
	 * 站点编码
	 */
	private String code;
	
	/**
	 * 站点状态：免费，试用，付费等。
	 */
	private String status;
	
	/**
	 * 站点域名，可以根据上级站点
	 */
	private String domain;
	
	/**
	 * 站点资源路径
	 */
	private String resPath;
	
	/**
	 * 站点资源地址
	 */
	private String resDomain;
	
	/**
	 * 根域名
	 */
	private String baseDomain;
	
	/**
	 * 可储存多个别名，用;分割
	 */
	private String domainAlias;
	
	/**
	 * 站点后缀。可以是htm、asp、php等
	 */
	private String suffix;
	
	/**
	 * 站点保存COOKIE的KEY
	 */
	private String cookieKey;
	
	/**
	 * 站点的拥有者
	 */
	private String ownerName;
	
	/**
	 * 站点拥有者身份证ID
	 */
	private String ownerIdentity;
	
	/**
	 * 站点拥有者Mail
	 */
	private String ownerEmail;
	
	/**
	 * 站点拥有者电话
	 */
	private String ownerTel;
	
	/**
	 * 站点拥有者移动电话
	 */
	private String ownerMobile;
	
	/**
	 * 公司/个人信息
	 */
	private String company;
	
	/**
	 * 版权信息
	 */
	private String copyright;
	
	/**
	 * 备案号
	 */
	private String recordCode;
	
	/**
	 * 站点带有遗传性，站点下自站点可继承父站点配置；
	 * 子站点配置优先原则，可以使用父站点的配置。
	 */
	private Boolean isInheritable;
	
	/**
	 * 站点是否关闭，关闭后，后台仍可访问
	 */
	private Boolean isClose;
	
	/**
	 * 站点异常跳转地址；
	 * 当站点关闭或者出现异常则跳转到该页面
	 */
	private String defaultUrl;
	
	/**
	 * 父站点
	 */
	private Site parent;
	
	/**
	 * 站点类型分组
	 */
	private SiteGroup siteGroup;

	public Boolean getIsPermissionPid() {
		return isPermissionPid;
	}
	public void setIsPermissionPid(Boolean isPermissionPid) {
		this.isPermissionPid = isPermissionPid;
	}
	public Long getSiteGroupId() {
		return siteGroupId;
	}
	public void setSiteGroupId(Long siteGroupId) {
		this.siteGroupId = siteGroupId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	public String getResPath() {
		return resPath;
	}
	public void setResPath(String resPath) {
		this.resPath = resPath;
	}
	public String getResDomain() {
		return resDomain;
	}
	public void setResDomain(String resDomain) {
		this.resDomain = resDomain;
	}
	public String getBaseDomain() {
		return baseDomain;
	}
	public void setBaseDomain(String baseDomain) {
		this.baseDomain = baseDomain;
	}
	public String getDomainAlias() {
		return domainAlias;
	}
	public void setDomainAlias(String domainAlias) {
		this.domainAlias = domainAlias;
	}
	public String getSuffix() {
		return suffix;
	}
	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}
	public String getCookieKey() {
		return cookieKey;
	}
	public void setCookieKey(String cookieKey) {
		this.cookieKey = cookieKey;
	}
	public String getOwnerName() {
		return ownerName;
	}
	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}
	public String getOwnerIdentity() {
		return ownerIdentity;
	}
	public void setOwnerIdentity(String ownerIdentity) {
		this.ownerIdentity = ownerIdentity;
	}
	public String getOwnerEmail() {
		return ownerEmail;
	}
	public void setOwnerEmail(String ownerEmail) {
		this.ownerEmail = ownerEmail;
	}
	public String getOwnerTel() {
		return ownerTel;
	}
	public void setOwnerTel(String ownerTel) {
		this.ownerTel = ownerTel;
	}
	public String getOwnerMobile() {
		return ownerMobile;
	}
	public void setOwnerMobile(String ownerMobile) {
		this.ownerMobile = ownerMobile;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getCopyright() {
		return copyright;
	}
	public void setCopyright(String copyright) {
		this.copyright = copyright;
	}
	public String getRecordCode() {
		return recordCode;
	}
	public void setRecordCode(String recordCode) {
		this.recordCode = recordCode;
	}
	public Boolean getIsInheritable() {
		return isInheritable;
	}
	public void setIsInheritable(Boolean isInheritable) {
		this.isInheritable = isInheritable;
	}
	public Boolean getIsClose() {
		return isClose;
	}
	public void setIsClose(Boolean isClose) {
		this.isClose = isClose;
	}
	public String getDefaultUrl() {
		return defaultUrl;
	}
	public void setDefaultUrl(String defaultUrl) {
		this.defaultUrl = defaultUrl;
	}
	public Site getParent() {
		return parent;
	}
	public void setParent(Site parent) {
		this.parent = parent;
	}
	public SiteGroup getSiteGroup() {
		return siteGroup;
	}
	public void setSiteGroup(SiteGroup siteGroup) {
		this.siteGroup = siteGroup;
	}
}
